package com.zpf.dao;

import com.zpf.domain.Book;
import com.zpf.domain.Page;

import java.util.List;

public interface BookDao {
    List<Book> selectAll();
//分页查询
    List<Book> selectAllByPage(Page page);
    //查询总条数
    int selectAllByPageCount();

    void delete(int bookId);

    Book selectById(int bookId);

    void update(Book book);

    void insert(Book book);
}
